<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:73:"D:\myphp\PHPTutorial\WWW\fresher\conf/../template/admin\menu_showadd.html";i:1533799955;s:74:"D:\myphp\PHPTutorial\WWW\fresher\conf/../template/admin\common_header.html";i:1534901852;s:74:"D:\myphp\PHPTutorial\WWW\fresher\conf/../template/admin\common_footer.html";i:1534140541;}*/ ?>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="__HLIB__html5shiv.js"></script>
<script type="text/javascript" src="__HLIB__respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="__HSTATIC__h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="__HSTATIC__h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="__HLIB__Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__HSTATIC__h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="__HSTATIC__h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="__HLIB__DD_belatedPNG_0.0.8a-min.js" ></script>

<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<style>
    #edui1_bottombar{
        display: none;
    }
</style>
    <title>菜单栏目添加</title>
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal"  method="post" enctype="multipart/form-data" action="<?php echo url('add'); ?>">
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>菜单类型：</label>
            <div class="formControls col-xs-6"> <span class="select-box">
				<select name="menu_id" class="select" datatype="*" nullmsg="请选择菜单" onchange="selectmenu($(this))">
					<option value="" selected disabled>请选择菜单</option>
					<option value="0">顶级菜单</option>
                    <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                        <option value="<?php echo $v['id']; ?>"     <?php if($v['menu_id'] != 0): ?> disabled <?php endif; ?>><?php echo $v['title']; ?></option>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
				</select>
				</span> </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>菜单名称：</label>
            <div class="formControls col-xs-6">
                <input type="text" class="input-text" value="<?php echo $data['title']; ?>" placeholder="请输入菜单名称" id="name" name="title" datatype="*" nullmsg="请输入菜单名称">
            </div>
        </div>

        <div class="row cl" id="link">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>方法名称：</label>
            <div class="formControls col-xs-6">
                <input type="text" class="input-text" value="<?php echo $data['link']; ?>" placeholder="请输入方法名称"  name="link">
            </div>
        </div>
        <div class="row cl" id="icon">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red"></span>图标：</label>
            <div class="formControls col-xs-6">
                <input type="text" class="input-text" value="<?php echo $data['icon']; ?>" name="icon" placeholder="请输入图标代码"  >
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3 col-xs-offset-1"><span class="c-red">*</span>栏目排序：</label>
            <div class="formControls col-xs-6 col-sm-9">
                <input type="text" class="input-text" onkeyup="this.value=this.value.replace(/\D/g,'')" value="<?php echo $data['sort']; ?>" placeholder="请输入栏目排序"  name="sort" datatype="n" nullmsg="请填写栏目排序">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label  col-xs-3 col-sm-3 col-xs-offset-1">备注：</label>
            <div class="formControls col-xs-6 col-sm-9">
                <textarea name="content" cols="" rows="" class="textarea"  placeholder="说点什么...100个字符以内" dragonfly="true" ><?php echo $data['content']; ?></textarea>
                <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__HLIB__jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__HLIB__layer/2.4/layer.js"></script>
<script type="text/javascript" src="__HSTATIC__h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="__HSTATIC__h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="__HLIB__laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="__HLIB__Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__HLIB__layer/2.4/layer.js"></script>
<script type="text/javascript" src="__HSTATIC__h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="__AJS__common.js"></script>
<script type="text/javascript" src="__HLIB__ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="__HLIB__ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="__HLIB__ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="__HLIB__My97DatePicker/4.8/WdatePicker.js"></script>
<!--/_footer 作为公共模版分离出去-->
</body>
<script>
    function selectmenu(obj) {
        $val=obj.val();
        if($val=="" || $val==0){
              $('#link').hide();
              $('#icon').show();
        }else{
            $('#link').show();
            $('#icon').hide();
        }
    }
</script>
</html>